package com.zebone.morphia.entity;

import java.util.Date;
import java.util.List;

import org.bson.types.ObjectId;
import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Field;
import org.mongodb.morphia.annotations.Id;
import org.mongodb.morphia.annotations.Index;
import org.mongodb.morphia.annotations.Indexes;
import org.mongodb.morphia.annotations.Reference;

@Entity("empiallref")
@Indexes(@Index(fields = @Field("pk_pati")))
public class UhDcPi2Ref {
	@Id
	private ObjectId id;
	private String pk_pati;
	private String code_group;
	private String code_org;
	private String pati_code;
	private String empi;
	private String pati_name;
	private String pati_photo;
	private String id_no;
	private String hp_code;
	private String hp_name;
	private String ass_no;
	private String code_sex;
	private String name_sex;
	private String date_birth;
	private String code_abo;
	private String name_abo;
	private String code_rh;
	private String name_rh;
	private String code_mari;
	private String name_mari;
	private String code_occu;
	private String name_occu;
	private String code_edu;
	private String name_edu;
	private String code_degree;
	private String name_degree;
	private String code_country;
	private String name_country;
	private String code_nation;
	private String name_nation;
	private String teleno;
	private String mobileno;
	private String email;
	private String name_workunit;
	private String addr_workunit;
	private String phone_workunit;
	private String postcode_workunit;
	private String pre_addr;
	private String code_kind;
	private String name_kind;
	private String code_entity;
	private String name_entity;
	private Date create_date;
	private String code_createuser;
	private String name_createuser;
	private String level_secrecy;
	private String data_source;
	private String source_pk;
	private Date create_time;
	private Date edit_time;
	private String flag_del;
	
	@Reference
	private List<UhDcPiCard> uhDcPiCardList;
	
	@Reference
	private List<UhDcPiAllergy> uhDcPiAllergyList;
	
	@Reference
	private List<UhDcPiDisease> uhDcPiDiseaseList;
	 
	@Reference
	private List<UhDcPiExp> uhDcPiExpList;
	 
	@Reference
	private List<UhDcPiFamily> uhDcPiFamilyList;

	public String getPk_pati() {
		return pk_pati;
	}

	public void setPk_pati(String pk_pati) {
		this.pk_pati = pk_pati;
	}

	public String getCode_group() {
		return code_group;
	}

	public void setCode_group(String code_group) {
		this.code_group = code_group;
	}

	public String getCode_org() {
		return code_org;
	}

	public void setCode_org(String code_org) {
		this.code_org = code_org;
	}

	public String getPati_code() {
		return pati_code;
	}

	public void setPati_code(String pati_code) {
		this.pati_code = pati_code;
	}

	public String getEmpi() {
		return empi;
	}

	public void setEmpi(String empi) {
		this.empi = empi;
	}

	public String getPati_name() {
		return pati_name;
	}

	public void setPati_name(String pati_name) {
		this.pati_name = pati_name;
	}

	public String getPati_photo() {
		return pati_photo;
	}

	public void setPati_photo(String pati_photo) {
		this.pati_photo = pati_photo;
	}

	public String getId_no() {
		return id_no;
	}

	public void setId_no(String id_no) {
		this.id_no = id_no;
	}

	public String getHp_code() {
		return hp_code;
	}

	public void setHp_code(String hp_code) {
		this.hp_code = hp_code;
	}

	public String getHp_name() {
		return hp_name;
	}

	public void setHp_name(String hp_name) {
		this.hp_name = hp_name;
	}

	public String getAss_no() {
		return ass_no;
	}

	public void setAss_no(String ass_no) {
		this.ass_no = ass_no;
	}

	public String getCode_sex() {
		return code_sex;
	}

	public void setCode_sex(String code_sex) {
		this.code_sex = code_sex;
	}

	public String getName_sex() {
		return name_sex;
	}

	public void setName_sex(String name_sex) {
		this.name_sex = name_sex;
	}

	public String getDate_birth() {
		return date_birth;
	}

	public void setDate_birth(String date_birth) {
		this.date_birth = date_birth;
	}

	public String getCode_abo() {
		return code_abo;
	}

	public void setCode_abo(String code_abo) {
		this.code_abo = code_abo;
	}

	public String getName_abo() {
		return name_abo;
	}

	public void setName_abo(String name_abo) {
		this.name_abo = name_abo;
	}

	public String getCode_rh() {
		return code_rh;
	}

	public void setCode_rh(String code_rh) {
		this.code_rh = code_rh;
	}

	public String getName_rh() {
		return name_rh;
	}

	public void setName_rh(String name_rh) {
		this.name_rh = name_rh;
	}

	public String getCode_mari() {
		return code_mari;
	}

	public void setCode_mari(String code_mari) {
		this.code_mari = code_mari;
	}

	public String getName_mari() {
		return name_mari;
	}

	public void setName_mari(String name_mari) {
		this.name_mari = name_mari;
	}

	public String getCode_occu() {
		return code_occu;
	}

	public void setCode_occu(String code_occu) {
		this.code_occu = code_occu;
	}

	public String getName_occu() {
		return name_occu;
	}

	public void setName_occu(String name_occu) {
		this.name_occu = name_occu;
	}

	public String getCode_edu() {
		return code_edu;
	}

	public void setCode_edu(String code_edu) {
		this.code_edu = code_edu;
	}

	public String getName_edu() {
		return name_edu;
	}

	public void setName_edu(String name_edu) {
		this.name_edu = name_edu;
	}

	public String getCode_degree() {
		return code_degree;
	}

	public void setCode_degree(String code_degree) {
		this.code_degree = code_degree;
	}

	public String getName_degree() {
		return name_degree;
	}

	public void setName_degree(String name_degree) {
		this.name_degree = name_degree;
	}

	public String getCode_country() {
		return code_country;
	}

	public void setCode_country(String code_country) {
		this.code_country = code_country;
	}

	public String getName_country() {
		return name_country;
	}

	public void setName_country(String name_country) {
		this.name_country = name_country;
	}

	public String getCode_nation() {
		return code_nation;
	}

	public void setCode_nation(String code_nation) {
		this.code_nation = code_nation;
	}

	public String getName_nation() {
		return name_nation;
	}

	public void setName_nation(String name_nation) {
		this.name_nation = name_nation;
	}

	public String getTeleno() {
		return teleno;
	}

	public void setTeleno(String teleno) {
		this.teleno = teleno;
	}

	public String getMobileno() {
		return mobileno;
	}

	public void setMobileno(String mobileno) {
		this.mobileno = mobileno;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getName_workunit() {
		return name_workunit;
	}

	public void setName_workunit(String name_workunit) {
		this.name_workunit = name_workunit;
	}

	public String getAddr_workunit() {
		return addr_workunit;
	}

	public void setAddr_workunit(String addr_workunit) {
		this.addr_workunit = addr_workunit;
	}

	public String getPhone_workunit() {
		return phone_workunit;
	}

	public void setPhone_workunit(String phone_workunit) {
		this.phone_workunit = phone_workunit;
	}

	public String getPostcode_workunit() {
		return postcode_workunit;
	}

	public void setPostcode_workunit(String postcode_workunit) {
		this.postcode_workunit = postcode_workunit;
	}

	public String getPre_addr() {
		return pre_addr;
	}

	public void setPre_addr(String pre_addr) {
		this.pre_addr = pre_addr;
	}

	public String getCode_kind() {
		return code_kind;
	}

	public void setCode_kind(String code_kind) {
		this.code_kind = code_kind;
	}

	public String getName_kind() {
		return name_kind;
	}

	public void setName_kind(String name_kind) {
		this.name_kind = name_kind;
	}

	public String getCode_entity() {
		return code_entity;
	}

	public void setCode_entity(String code_entity) {
		this.code_entity = code_entity;
	}

	public String getName_entity() {
		return name_entity;
	}

	public void setName_entity(String name_entity) {
		this.name_entity = name_entity;
	}

	public Date getCreate_date() {
		return create_date;
	}

	public void setCreate_date(Date create_date) {
		this.create_date = create_date;
	}

	public String getCode_createuser() {
		return code_createuser;
	}

	public void setCode_createuser(String code_createuser) {
		this.code_createuser = code_createuser;
	}

	public String getName_createuser() {
		return name_createuser;
	}

	public void setName_createuser(String name_createuser) {
		this.name_createuser = name_createuser;
	}

	public String getLevel_secrecy() {
		return level_secrecy;
	}

	public void setLevel_secrecy(String level_secrecy) {
		this.level_secrecy = level_secrecy;
	}

	public String getData_source() {
		return data_source;
	}

	public void setData_source(String data_source) {
		this.data_source = data_source;
	}

	public String getSource_pk() {
		return source_pk;
	}

	public void setSource_pk(String source_pk) {
		this.source_pk = source_pk;
	}

	public Date getCreate_time() {
		return create_time;
	}

	public void setCreate_time(Date create_time) {
		this.create_time = create_time;
	}

	public Date getEdit_time() {
		return edit_time;
	}

	public void setEdit_time(Date edit_time) {
		this.edit_time = edit_time;
	}

	public String getFlag_del() {
		return flag_del;
	}

	public void setFlag_del(String flag_del) {
		this.flag_del = flag_del;
	}

	public List<UhDcPiCard> getUhDcPiCardList() {
		return uhDcPiCardList;
	}

	public void setUhDcPiCardList(List<UhDcPiCard> uhDcPiCardList) {
		this.uhDcPiCardList = uhDcPiCardList;
	}

	public List<UhDcPiAllergy> getUhDcPiAllergyList() {
		return uhDcPiAllergyList;
	}

	public void setUhDcPiAllergyList(List<UhDcPiAllergy> uhDcPiAllergyList) {
		this.uhDcPiAllergyList = uhDcPiAllergyList;
	}

	public List<UhDcPiDisease> getUhDcPiDiseaseList() {
		return uhDcPiDiseaseList;
	}

	public void setUhDcPiDiseaseList(List<UhDcPiDisease> uhDcPiDiseaseList) {
		this.uhDcPiDiseaseList = uhDcPiDiseaseList;
	}

	public List<UhDcPiExp> getUhDcPiExpList() {
		return uhDcPiExpList;
	}

	public void setUhDcPiExpList(List<UhDcPiExp> uhDcPiExpList) {
		this.uhDcPiExpList = uhDcPiExpList;
	}

	public List<UhDcPiFamily> getUhDcPiFamilyList() {
		return uhDcPiFamilyList;
	}

	public void setUhDcPiFamilyList(List<UhDcPiFamily> uhDcPiFamilyList) {
		this.uhDcPiFamilyList = uhDcPiFamilyList;
	}


}
